export default [
  { path: '/login', component: '@/pages/Login' },
  {
    path: '/',
    component: '@/layouts/BasicLayout',
    wrappers: ['@/wrappers/auth.tsx'],
    routes: [
      { path: '/index', component: '@/pages/index', title: '首页' },
      {
        path: '/admin',
        title: '管理',
        routes: [
          {
            path: '/admin/account',
            component: '@/pages/Admin/Account',
            title: '开通账号',
          },
        ],
      },
      {
        path: '/customer',
        component: '@/pages/Customer',
        title: '客服列表',
      },
      {
        path: '/grade',
        component: '@/pages/Grade',
        title: '今日计分统计',
      },
      {
        path: '/setting',
        title: '设置',
        routes: [
          {
            path: '/setting/EditPassword',
            component: '@/pages/Setting/EditPassword',
            title: '修改密码',
          },
          {
            path: '/setting/Log',
            component: '@/pages/Setting/Log',
            title: '日志',
          },
        ],
      },
    ],
  },
];
